from odoo import api, fields, models


class RpCustomerCategory(models.Model):
    _name = 'rp.customer.category'
    _description = '客户分类'
    _sql_constraints = [('name', 'UNIQUE(name)', '客户分类必须唯一')]

    name = fields.Char(string='客户分类', required=True, copy=False, index=True)
